<%@ page import="com.cyx.pojo.User" %>
<%@ page contentType="text/html; charset=utf-8" isELIgnored="false"%>
<html>
<body>
    <form action="${pageContext.request.contextPath}/login" method="post">
        <label>用户名：</label>
        <input name="username"><br>
        <label>密码：</label>
        <input name="password"><br>
        <label>订阅频道</label>
        <input type="checkbox" name="channel" value="cctv">CCTV
        <input type="checkbox" name="channel" value="bjtv">BJTV
        <input type="checkbox" name="channel" value="zjtv">ZJTV
        <input type="checkbox" name="channel" value="btv">BTV
        <button type="submit">提交</button>
    </form>
    <br>
    <%--JSP代码片段--%>
    <%
        User user = (User) session.getAttribute("user");
        out.println("下面将要输出user");
    %>
    <%--JSP表达式--%>
    <%=user%>
</body>
</html>
